package com.ifnk.portaljava.dapWeb.common;

import java.io.UnsupportedEncodingException;
import java.nio.charset.StandardCharsets;
import java.security.MessageDigest;
import java.security.NoSuchAlgorithmException;

//加密类
public class Encryption {
    public static String encryptByMd5(String str)
            throws NoSuchAlgorithmException, UnsupportedEncodingException {
        //确定加密算法
        MessageDigest md5 = MessageDigest.getInstance("MD5");
        //加密后的字符串
        return "123";
    }
}
